package cn.iocoder.yudao.module.system.tcpserver.pojo;

public class ZkPacketFrame {
    byte[] data;
    boolean isFirstHeartData = false;
    boolean isUploadEndACK = false;

    public ZkPacketFrame(byte[] data) {
        this.data = data;
    }

    public ZkPacketFrame(byte[] data, boolean isFirstHeartData) {
        this.data = data;
        this.isFirstHeartData = isFirstHeartData;
    }

    public ZkPacketFrame(byte[] data, boolean isFirstHeartData, boolean isUploadEndACK) {
        this.data = data;
        this.isFirstHeartData = isFirstHeartData;
        this.isUploadEndACK = isUploadEndACK;
    }

    public byte[] packet() {
        return data;
    }

    public boolean isFirstHeartData() {
        return isFirstHeartData;
    }

    public boolean isUploadEndACK() {
        return isUploadEndACK;
    }
}
